<template>
    <div>
        <el-container>
            <!-- 侧边栏     -->
            <el-aside width="200px" >
                <el-menu style="background-color: lightsteelblue">
                    <el-menu-item index="1">用户管理</el-menu-item>
                    <el-menu-item index="2">车辆管理</el-menu-item>
                    <el-menu-item index="3">围栏管理</el-menu-item>
                </el-menu>
            </el-aside>
            <el-container>
                <el-header>
                    <h1 style="background-color: #0aa1ed;color: #fff;">智慧车辆管理系统-IVOS</h1>
                </el-header>
                <el-main style="background-color: lightblue; width: 100%" >
                    <el-table :data="vehicleArr">
                        <el-table-column label="序号" type="index" width="80" align="center"></el-table-column>
                        <el-table-column label="品牌" prop="brand" align="center"></el-table-column>
                        <el-table-column label="型号" prop="model" align="center"></el-table-column>
                        <el-table-column label="车牌号" prop="license" align="center"></el-table-column>
                        <el-table-column label="颜色" prop="color" align="center"></el-table-column>
                        <el-table-column label="公里数" prop="km" align="center"></el-table-column>
                    </el-table>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script setup>
import {ref} from "vue";

//定义数组用来模拟从后端请求回来的车辆数据
const vehicleArr = ref([
    {brand:'奥迪',model:'霍希',license:'粤A88888',color:'黑',km:10000000},
    {brand:'梅赛德斯',model:'S450',license:'粤A88888',color:'黑',km:10000000},
    {brand:'红旗',model:'国雅',license:'粤A88888',color:'黑',km:10000000},
    {brand:'凯迪拉克',model:'CT6',license:'粤A88888',color:'黑',km:10000000},
    {brand:'宝马',model:'X7',license:'粤A88888',color:'黑',km:10000000},
    {brand:'奥迪',model:'RS8',license:'粤A88888',color:'黑',km:10000000},
    {brand:'保时捷',model:'卡宴',license:'粤A88888',color:'黑',km:10000000}
]);
</script>

<style scoped>

</style>